<?php
class cacheDAO extends CI_Model {


    function __construct() {

        // Call the Model constructor
        parent::__construct();
    }

    
    function cache($time=15,$path="canal")
    {
        $this->output->cache($time);
        
        $cache_expires = $this->output->get_path_cache_expiration($path);
         
        if ($cache_expires > 0)
        {
            $this->output->clear_path_cache($path);
            //The cache for 'path/to/check' will expire on the unix timestanp $cache_expires
        }
        else
        {
            //There is no cache for 'path/to/check'
        }
        
    }


    

}

?>